package com.chpro.finance.logmanager.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.chpro.finance.logmanager.entity.Diary;
import com.chpro.finance.logmanager.service.DiarySerivce;
import com.chpro.orm.hibernate.ControllerBaseImpl;
import com.chpro.orm.hibernate.ServiceBase;

@Controller(value="diaryController")
@RequestMapping(value="Diary")
public class DiaryController extends ControllerBaseImpl<Diary> {

	private DiarySerivce diarySerivce;
	
	@Resource(name="diaryServiceImpl")
	public void setDiarySerivce(DiarySerivce diarySerivce) {
		this.diarySerivce = diarySerivce;
	}

	@Override
	public ServiceBase<Diary> getDao() {
		// TODO Auto-generated method stub
		return diarySerivce;
	}

}
